import QtQuick 2.4
import QtQuick.Dialogs 1.2

Page3Form {
    comboBox.model: ["dog","cat","fish"];
    button.onClicked: {
        var ret = "Your pet :"+textField.text + ",Age : " +label1.text + ", "+comboBox.currentText;
        msgInfo.text = ret;
        msgInfo.open();
    }

    dial.onValueChanged: {
        progressBar.value = dial.value;
        label1.text = "Age "+ Math.round(dial.value);
    }

    MessageDialog{
        id:msgInfo //小写开头
        title:"ok buy"
        text: ""
        onAccepted: Qt.quit()   //点击确认之后

    }
}
